package com.petshop.action;

import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class GetExcelFile extends HttpServlet {
	private static final long serialVersionUID = 1L;

	protected void doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		response.setContentType("application/vnd.ms-excel");
		
		System.out.println("Get Excel File !!");
		
		OutputStream out = response.getOutputStream();
		PrintWriter writer = new PrintWriter(out);
		writer.println("data0");
		writer.println("data11\tdata12\tdata13");
		writer.println("data21\tdata22\tdata23");
	}

}
